
/*****************************************************************************
*        描述 :
*             文件描述
*        CLR版本:            3.5
*        创建者 :            蒋 光 
*        个人域名:           jiangguang.net.cn
*        命名空间名称:       ECP.DataAccess
*        文件名:             IBaseDao.cs
*        创建系统时间:       2012/11/2 19:07:00
*        创建年份:           2012
*
/*****************************************************************************/
namespace ECP.DataAccess
{
    using ECP.DataAccess.Utilities;
    using ECP.Utilities;
    using System;
    using System.Data;

    public interface IBaseDao
    {
        bool AddAfter();
        bool AddBefore();
        string AddEntity(object entity);
        int BatchDelete(string[] ids);
        int BatchDelete(string[] ids, bool force);
        int BatchDelete(string[] names, object[] values);
        int BatchDelete(string[] names, object[] values, bool force);
        int BatchSave(DataTable dataTable);
        int Delete();
        int Delete(string id);
        int Delete(string id, bool force);
        int Delete(string name, object value);
        int Delete(IDbHelper dbHelper, BaseUserInfo userInfo, string id);
        int Delete(string name, object value, bool force);
        int Delete(string name1, object value1, string name2, object value2);
        int Delete(string name1, object value1, string name2, object value2, bool force);
        bool DeleteAfter(string id);
        bool DeleteBefore(string id);
        int DeleteEntity(string id);
        bool Exists(string[] ids);
        bool Exists(string id);
        bool Exists(string[] names, object[] values);
        bool Exists(string name, object value);
        bool Exists(string name, object value, string id);
        bool Exists(string name1, object value1, string name2, object value2);
        bool Exists(string name1, object value1, string name2, object value2, string id);
        string FindID(string[] names, object[] values);
        string FindID(string name, object value);
        string FindID(string name1, object value1, string name2, object value2);
        DataTable Get(string id);
        object Get(DataTable dataTable, string id);
        DataTable Get(string name, object value);
        object Get(DataTable dataTable, string name, object value);
        bool GetAfter(string id);
        bool GetBefore(string id);
        DataTable GetDT();
        DataTable GetDT(string order);
        DataTable GetDT(string[] ids);
        DataTable GetDT(string name, object[] values);
        DataTable GetDT(string order, int topLimit);
        DataTable GetDT(string[] names, object[] values);
        DataTable GetDT(string name, object value);
        DataTable GetDT(string[] names, object[] values, string order);
        DataTable GetDT(string name, object value, string order);
        DataTable GetDT(string name, object value, string order, int topLimit);
        DataTable GetDT(string name1, object value1, string name2, object value2);
        DataTable GetDT(string[] names, object[] values, string order, int topLimit);
        DataTable GetDT(string name1, object value1, string name2, object value2, string order);
        DataTable GetDT(string name1, object value1, string name2, object value2, string order, int topLimit);
        object GetFrom(DataRow dataRow);
        object GetFrom(DataTable dataTable);
        object GetFrom(DataTable dataTable, string id);
        object GetFromDS(DataSet dataSet);
        object GetFromDS(DataSet dataSet, string id);
        object GetFromDS(DataSet dataSet, string name, object value);
        string[] GetIDs();
        string[] GetIDs(string order);
        string[] GetIDs(string[] names, object[] values);
        string[] GetIDs(string name, object[] values);
        string[] GetIDs(string order, int topLimit);
        string[] GetIDs(string name, object value);
        string[] GetIDs(string[] names, object[] values, string order);
        string[] GetIDs(string name, object value, string order);
        string[] GetIDs(string[] names, object[] values, string order, int topLimit);
        string[] GetIDs(string name, object value, string order, int topLimit);
        string[] GetIDs(string name1, object value1, string name2, object value2);
        string[] GetIDs(string name1, object value1, string name2, object value2, string order);
        string[] GetIDs(string name1, object value1, string name2, object value2, string order, int topLimit);
        string GetProperty(string id, string targetField);
        string GetProperty(string[] names, object[] values, string targetField);
        string GetProperty(string name1, object value1, string name2, object value2, string targetField);
        int SetProperty(string[] ids, string targetField, object targetValue);
        int SetProperty(string id, string targetField, object targetValue);
        int SetProperty(string id, string[] targetFields, object[] targetValues);
        int SetProperty(string[] names, object[] values, string targetField, object targetValue);
        int SetProperty(string name1, object value1, string name2, object value2, string targetField, object targetValue);
        int Truncate();
        bool UpdateAfter();
        bool UpdateBefore();
        int UpdateEntity(object entity);
    }
}


